package com.shawn.spring.boot.jpa.config;

import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author shawn
 * @since 2020/8/31
 */
@Configuration
@EnableTransactionManagement(mode = AdviceMode.PROXY)
@EnableJpaAuditing
@EnableJpaRepositories(basePackages = "com.shawn.spring.boot.jpa.repository")
public class JpaConfig {}
